package com.size.mall.util;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateUtil;

import java.util.Date;
import java.util.Map;

public class TestJwt {
    public static void main(String[] args) {

        Map<String, Object> parm = CollUtil.newHashMap();


        parm.put("meberId", "1");
        parm.put("nickName", "yinhong");

        String time = DateUtil.format(new Date(), "yyyy-MM-dd hh-mm-ss");

        String ip = "192.168.58.80";
        String encode = JwtUtil.encode("2019sizemall", parm, ip + time);


        System.out.println(encode);
    }
}
